<template>
  <div class="workshops_container">
      <!--<dv-loading v-if="loading"></dv-loading>-->
      <list-header
      :type="type"
      :title="title"
      icon="clipboard"
      searchplaceholder="请输入物品名称"
      @on-search="SearchMthods"
      @on-index="resetMethods"
      :status="true"
    />
      <div class="workshops_main">
          <c-tbale @delHandle="delHandle" :columns="columns" :tableData="tableData" :tableHeight="tableHeight"/>
      </div>
  </div>
</template>

<script>
import listHeader from "@/components/listHeader/index";
import cTbale from "../../../components/tablePage/tablePage";
import minix from "../../../mixins/table";
export default {
  components: {
    listHeader,
    cTbale,
  },
  mixins: [minix],
  data(){
    return{
      type:"OutboundInventory",
      indexurl:"OutboundInventoryPage",
      delurl: "OutboundInventoryDel",
      title:"出/入库",
      columns:[
        { text: "物品名称", prop: "MATERIALNAME", width: '12%' },
        { text: "型号", prop: "MODELNUMBER", width: '12%' },
        { text: "库存", prop: "AMOUNT", width: '12%' },
        { text: "采购/出库时间", prop: "TIME", width: '11%' },
        { text: "经办人", prop: "PERSON", width: '11%' },
        { text: "类型", prop: "TYPE", width: '11%' },
        { text: "生产厂商", prop: "MANUFACTURER", width: '11%' },
        { text: "备注", prop: "REMARK", width: '11%' }
      ],
    }
  }
};
</script>

<style lang="scss" scoped>
.workshops_main{
    padding: 0 0.2rem  !important;
}
</style>